<?php

namespace Application\Model;

class Information {
	
	public $idInfo;
	public $sejourInfo;
	public $mailInfo;
	public $textInfo;
	public $dateInfo;
	
	public function exchangeArray($data)
	{
		$this->idInfo = (isset($data['idInfo'])) ? $data['idInfo'] : null;
		$this->sejourInfo = (isset($data['sejourInfo'])) ? $data['sejourInfo'] : null;
		$this->mailInfo = (isset($data['mailInfo'])) ? $data['mailInfo'] : null;
		$this->textInfo = (isset($data['textInfo'])) ? $data['textInfo'] : null;
		$this->dateInfo = (isset($data['dateInfo'])) ? $data['dateInfo'] : date('Y-m-d H:i:s');
	}
}
